package com.gof.example.adapter.cls_pattern;

import com.gof.example.adapter.Encryption;
import com.gof.example.adapter.Md5;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 10:07.
 * haiming.fei@tongdun.cn
 */
public class EncryptionAdapter4cls extends Md5 implements Encryption {

    @Override
    public String encrypt(String str) {
        System.out.println("class adapter pattern");
        return super.enc(str);
    }
}
